package util;

import static util.Constant.*;

/**
 * Desc: 枚举小测试
 * @author: lisha 2018/6/15 17:16
 */
public class TestEnum {
    public static void main(String[] args) {
        String color = "RED";
        // 常量输出
        switch (color){
            case C_RED : {
                System.out.println(RED_DESC);
                break;
            }
            case C_GREEN : {
                System.out.println(GREEN_DESC);
                break;
            }
            case C_YELLOW : {
                System.out.println(YELLOW_DESC);
                break;
            }
            default:
                break;
        }

        System.out.println("------------");
        // 枚举输出
        System.out.println(
                TrafficSign.getDesc(color)
        );
    }
}
